package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IRedToCash
import fhp.hlhj.giantfold.javaBean.BaseBean
import fhp.hlhj.giantfold.module.RedToCashModule

/**
 * Created by Administrator on 2018\2\10 0010.
 */
class RedToCashPresenter(private val  iRedToCash: IRedToCash) : RedToCashModule.OnRedToCashResp {

    private val module=RedToCashModule()

    fun redToCash(params: HttpParams){

        module.redToCash(params,this)
    }

    override fun showLoading() {
        iRedToCash.showLoading()
    }

    override fun onResp(t: BaseBean) {
        iRedToCash.OnResp(t)
    }
}